#ifndef CLIENTINFORMATION_H
#define CLIENTINFORMATION_H

#include <QObject>

class ClientInformation
{
public:
    ClientInformation();
    QString ipAddr;
    struct serverToClientDataPackage {
        char   Head[4] ;
        qint16 DateType;
        qint16 CrcReturn;
        qint16 TruckStart;
        qint16 truckNum;
        qint16 ResUnLoad;
        qint16 ResPond;
        qint16 LoadOver;
        qint16 kaiDengMingDi;
        qint16 BaoLiu[2];
        qint16 Time[3];
        qint16 TruckID[5];
        qint16 TruckState[5];
        qint16 YonDongQuShi[5];
        double Vel[5];
        double Lattitude[5];
        double Longitude[5];
        double Altitude[5];
        double Heading[5];
        double Longth[5];
        double Width[5];
        qint16 TeleControl;
        qint16 LifeOrRight;
        qint16 DangWei;
        qint16 YouMen;
        qint16 ShaChe;
        qint16 QuLi;
        qint16 ShengJiangDou;
        qint16 FangChen;
        qint16 DuanQiSha;
        unsigned int  CRC32;
        char   End[4];
    } STC_Data;
    struct serverToClientFilePackage {
        char Head[4];
        qint16 DateType;
        qint16 CrcReturn;
        qint16 PackagesNum;
        qint16 PackagesId;
        qint16 BaoLiu1;
        qint16 BaoLiu2;
        qint32 DataLen;
        char   FileName[32];
        char   FileData[512];
        qint32 CRC32;
        char   End[4];
    } STC_File;
    QJsonObject getSendToClientDataPackage();
};

#endif // CLIENTINFORMATION_H
